]> dgit.raspbian.org Git - opencv.git/commitdiff
FFmpeg 8.0 support 2/2
authorDmitry Kurtaev <dmitry.kurtaev@gmail.com>
Sat, 18 Jul 2026 07:35:00 +0000 (09:35 +0200)
committerSantiago Vila <sanvila@debian.org>
Sat, 18 Jul 2026 07:35:00 +0000 (09:35 +0200)
Origin: upstream, https://github.com/opencv/opencv/commit/443d0ae63fad6dfd8c485d609203db16c8bd0ec3

Gbp-Pq: Name ffmpeg-8.0-compat-2.patch

modules/videoio/src/cap_ffmpeg_impl.hpp

index 78037d58be297dc530ae157960b74dd4cfcccebe..11288036212e92432abffdf43bd1e80af2b01860 100644 (file)
@@ -1951,7 +1951,10 @@ void CvCapture_FFMPEG::get_rotation_angle()
     if (sd && nb_sd > 0)
     {
         const AVPacketSideData* mtx = av_packet_side_data_get(sd,  nb_sd, AV_PKT_DATA_DISPLAYMATRIX);
-        data = mtx->data;
+        if (mtx)
+        {
+            data = mtx->data;
+        }
     }
 # endif
     if (data)